import java.util.Scanner;
public class MyDCtest{
	public static void main(String[] args){
		String experssion,again;
		int result;
		try
		{
			Scanner in = new Scanner(System,in);
			do
			{
			      MyDC evaluator = new MyDC();
			      System.out.println("Enter a valid postfix experssion:");
			      expression = in.nextLine();
			      result = evaluator.evaluate(expression);
			      System.out.println();
			      System.out.println("That expression equals" + result);

			      System.out.print("Evaluate another experssion [Y/N]?");
			      again = in.nextLine();
			      System.out.println();
			}
			while (again.equalsIgnoreCase(anotherString:"Y"));
		}catch(Ecception IOException){
			System.out.println("Input exception reported");
		}
	}
}

